home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June / CHIP 2006-06.2.iso / program / driver / 6-4_xp-2k_dd_cc.exe / Data1.cab / _00105C59C6A9481E8DF847C2DF4530BD < prev    next >
Encoding:
Text File  |  2003-09-15  |  3.8 KB  |  167 lines

  1. // Copyright (c) 2002-2003 Quadralay Corporation.  All rights reserved.
  2. //
  3.  
  4. function  WebWorks_WriteAnchorOpen(ParamID,
  5.                                    bParamExpanded)
  6. {
  7.   if ((WWHFrame != null) &&
  8.       ( ! WWHFrame.WWHHelp.mbAccessible) &&
  9.       ((typeof(document.all) != "undefined") ||
  10.        (typeof(document.getElementById) != "undefined")))
  11.   {
  12.     document.write("<a href=\"javascript:WebWorks_ToggleDIV('" + ParamID + "');\">");
  13.   }
  14. }
  15.  
  16. function  WebWorks_WriteAnchorClose(ParamID,
  17.                                     bParamExpanded)
  18. {
  19.   var  VarIMGSrc;
  20.  
  21.  
  22.   if ((WWHFrame != null) &&
  23.       ( ! WWHFrame.WWHHelp.mbAccessible) &&
  24.       ((typeof(document.all) != "undefined") ||
  25.        (typeof(document.getElementById) != "undefined")))
  26.   {
  27.     if (bParamExpanded)
  28.     {
  29.       VarIMGSrc = "images/expanded.gif";
  30.     }
  31.     else
  32.     {
  33.       VarIMGSrc = "images/collapse.gif";
  34.     }
  35.  
  36.     document.write(" <img id=\"" + ParamID + "_arrow\" src=\"" + VarIMGSrc + "\" border=\"0\">");
  37.     document.write("</a>");
  38.   }
  39. }
  40.  
  41. function  WebWorks_WriteDIVOpen(ParamID,
  42.                                 bParamExpanded)
  43. {
  44.   if ((WWHFrame != null) &&
  45.       ( ! WWHFrame.WWHHelp.mbAccessible) &&
  46.       ((typeof(document.all) != "undefined") ||
  47.        (typeof(document.getElementById) != "undefined")))
  48.   {
  49.     if (bParamExpanded)
  50.     {
  51.       document.write("<div id=\"" + ParamID + "\" style=\"visibility: visible; display: block;\">");
  52.     }
  53.     else
  54.     {
  55.       document.write("<div id=\"" + ParamID + "\" style=\"visibility: hidden; display: none;\">");
  56.     }
  57.   }
  58. }
  59.  
  60. function  WebWorks_WriteDIVClose(ParamID)
  61. {
  62.   if ((WWHFrame != null) &&
  63.       ( ! WWHFrame.WWHHelp.mbAccessible) &&
  64.       ((typeof(document.all) != "undefined") ||
  65.        (typeof(document.getElementById) != "undefined")))
  66.   {
  67.     document.write("</div>");
  68.   }
  69. }
  70.  
  71. function  WebWorks_ToggleDIV(ParamID)
  72. {
  73.   var  VarImageID;
  74.   var  VarIMG;
  75.   var  VarDIV;
  76.  
  77.  
  78.   VarImageID = ParamID + "_arrow";
  79.  
  80.   if (typeof(document.all) != "undefined")
  81.   {
  82.     // Reference image
  83.     //
  84.     VarIMG = document.all[VarImageID];
  85.     if ((typeof(VarIMG) != "undefined") &&
  86.         (VarIMG != null))
  87.     {
  88.       // Nothing to do
  89.     }
  90.     else
  91.     {
  92.       VarIMG = null;
  93.     }
  94.  
  95.     // Reference DIV tag
  96.     //
  97.     VarDIV = document.all[ParamID];
  98.     if ((typeof(VarDIV) != "undefined") &&
  99.         (VarDIV != null))
  100.     {
  101.       if (VarDIV.style.display == "block")
  102.       {
  103.         if (VarIMG != null)
  104.         {
  105.           VarIMG.src = "images/collapse.gif";
  106.         }
  107.  
  108.         VarDIV.style.visibility = "hidden";
  109.         VarDIV.style.display = "none";
  110.       }
  111.       else
  112.       {
  113.         if (VarIMG != null)
  114.         {
  115.           VarIMG.src = "images/expanded.gif";
  116.         }
  117.  
  118.         VarDIV.style.visibility = "visible";
  119.         VarDIV.style.display = "block";
  120.       }
  121.     }
  122.   }
  123.   else if (typeof(document.getElementById) != "undefined")
  124.   {
  125.     // Reference image
  126.     //
  127.     VarIMG = document[VarImageID];
  128.     if ((typeof(VarIMG) != "undefined") &&
  129.         (VarIMG != null))
  130.     {
  131.       // Nothing to do
  132.     }
  133.     else
  134.     {
  135.       VarIMG = null;
  136.     }
  137.  
  138.     // Reference DIV tag
  139.     //
  140.     VarDIV = document.getElementById(ParamID);
  141.     if ((typeof(VarDIV) != "undefined") &&
  142.         (VarDIV != null))
  143.     {
  144.       if (VarDIV.style.display == "block")
  145.       {
  146.         if (VarIMG != null)
  147.         {
  148.           VarIMG.src = "images/collapse.gif";
  149.         }
  150.  
  151.         VarDIV.style.visibility = "hidden";
  152.         VarDIV.style.display = "none";
  153.       }
  154.       else
  155.       {
  156.         if (VarIMG != null)
  157.         {
  158.           VarIMG.src = "images/expanded.gif";
  159.         }
  160.  
  161.         VarDIV.style.visibility = "visible";
  162.         VarDIV.style.display = "block";
  163.       }
  164.     }
  165.   }
  166. }
  167.